// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()

// 云函数入口函数
exports.main = async (event, context) => {
  let code;
  let data = await cloud.database().collection('login_infs').doc(event.id).remove();
  if(data.stats.removed == 1){
    code = 200;
  }else{
    code = 400;
  }
  return code
}